<template>
  <div>
    <button @click="btnClick">请求</button>
  </div>
</template>

<script>
import { apitest } from '@/api/index'
export default {
  methods: {
    async btnClick () {
      const res = await apitest()
      console.log(res)
    }
  }
}
</script>

<style></style>
